﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Moxiecode.TinyMCE.Settings
{
    [AttributeUsage(AttributeTargets.Property)]
    public sealed class SettingInfoAttribute : Attribute
    {
        public SettingInfoAttribute(): this(null) { }
        public SettingInfoAttribute(string name) 
        { 
            Name = name;
            Format = Localization_en.LowerStringCommandFormat;
        }

        public string Name { get; set; }
        public bool MultiCommandCollection { get; set; }
        public string Format { get; set; }

        private bool _isUri = false;
        public bool IsUri 
        {
            get { return _isUri; }
            set 
            { 
                _isUri = value;
                Format = Localization_en.StringCommandFormat;
            }
        }

        private RenderProperty _render = RenderProperty.Auto;
        public RenderProperty Render
        {
            get { return _render; }
            set { _render = value; }
        }
    }
}
